package com.xueyi.system.returnManager.domain.po;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.returnManager.domain.dto.ReturnManagerDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 退货管理 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_return_manager", excludeProperty = {"name","sort","status"},autoResultMap = true)
public class ReturnManagerPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /** 编码 */
@Excel(name = "编码")
@TableField("code")
private String code;

    /** 退货单位 */
@Excel(name = "退货单位")
@TableField("return_enterprise")
private String returnEnterprise;

    /** 产品id */
@Excel(name = "产品id")
@TableField("product_id")
private String productId;

    /** 产品名称 */
@Excel(name = "产品名称")
@TableField("product_name")
private String productName;

    /** 规格 */
@Excel(name = "规格")
@TableField("specs")
private String specs;

    /** 数量 */
@Excel(name = "数量")
@TableField("num")
private BigDecimal num;

    /** 批次 */
@Excel(name = "批次")
@TableField("batch")
private String batch;

    /** 出库单号 */
@Excel(name = "出库单号")
@TableField("Issue_no")
private String issueNo;

    /** 送货日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Excel(name = "送货日期", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("delivery_date")
private LocalDateTime deliveryDate;

    /** 退货原因 */
@Excel(name = "退货原因")
@TableField("reason")
private String reason;

    /** 申请人 */
@Excel(name = "申请人")
@TableField("applicant_user")
private String applicantUser;

    /** 附件 */
@TableField(value = "appendix", typeHandler = FastjsonTypeHandler.class)
private JSONArray appendix;

public void setCode(String code) {
    this.code = code;
}

public String getCode() {
    return code;
}

public void setReturnEnterprise(String returnEnterprise) {
    this.returnEnterprise = returnEnterprise;
}

public String getReturnEnterprise() {
    return returnEnterprise;
}

public void setProductId(String productId) {
    this.productId = productId;
}

public String getProductId() {
    return productId;
}

public void setProductName(String productName) {
    this.productName = productName;
}

public String getProductName() {
    return productName;
}

public void setSpecs(String specs) {
    this.specs = specs;
}

public String getSpecs() {
    return specs;
}

public void setNum(BigDecimal num) {
    this.num = num;
}

public BigDecimal getNum() {
    return num;
}

public void setBatch(String batch) {
    this.batch = batch;
}

public String getBatch() {
    return batch;
}

public void setIssueNo(String issueNo) {
    this.issueNo = issueNo;
}

public String getIssueNo() {
    return issueNo;
}

public void setDeliveryDate(LocalDateTime deliveryDate) {
    this.deliveryDate = deliveryDate;
}

public LocalDateTime getDeliveryDate() {
    return deliveryDate;
}

public void setReason(String reason) {
    this.reason = reason;
}

public String getReason() {
    return reason;
}

public void setApplicantUser(String applicantUser) {
    this.applicantUser = applicantUser;
}

public String getApplicantUser() {
    return applicantUser;
}

public void setAppendix(JSONArray appendix) {
    this.appendix = appendix;
}

public JSONArray getAppendix() {
    return appendix;
}

}
